﻿using GraphProcessor;
using IQIGame.Onigao.Logic;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(LevelEditorConst.Level + "/" + LevelEditorConst.Trigger + "/" + LevelEditorConst.EntityState, typeof(LevelServiceGraph))]
    public class LevelServiceTriggerNode_EntityState : LevelServiceTriggerNode
    {
        protected override ServiceTriggerType triggerType => ServiceTriggerType.EntityState;

        protected override string triggerName => LevelEditorConst.EntityState;
        [LevelServiceEditorCustomProperty(ServiceTriggerType.EntityState, "levelEntityState状态序号")]
        public int requireState;
        
        protected override LevelServiceCustomConfig CreateConfig()
        {
            return new LevelServiceTriggerCustom_EntityState()
            {
                requireState = this.requireState,
            };
        }
    }
}